home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / inrstex / inrsinputs / centerh.tex < prev    next >
Text File  |  1991-09-05  |  514b  |  10 lines

  1. % ============ modified to center heads /subheads .... ======
  2. %the parameters must be as shown and will have that meaning
  3. % #1 font (=#3); #2 number (=#4) ; #3 <text> (=#5); #4 number/text sep (=#7)
  4. % check on \t@agtext suppresses space when there is no number 
  5. \catcode`\@=11
  6. \def\gensheadformat#1#2#3#4{\ifx\t@agtext\empty\setbox0=\hbox{}\else
  7.                                 \setbox0=\hbox{#1#2#4}\fi
  8.                 \vbox{\paragraphcenterline \normalbaselines
  9.                        #1\box0 #3}}
  10. \catcode`\@=12